-
Home
-
YayPricing – WooCommerce Dynamic Pricing & Discounts
-
3.5.1 (latest)
-
Code
-
Classes
- YAYDP_Simple_Discount
Total Complexity |
15 |
Dependencies |
4 |
Dependents |
0 |
Total lines |
146 |
Lines of code |
98 |
Logical lines of code |
43 |
Comment lines |
35 |
Methods |
7 |
Properties |
0 |
Methods 7
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
get_total_discount_amount() |
S |
57 |
4 |
17 |
create_possible_adjustment_from_cart() |
S |
63 |
3 |
11 |
get_coupon_data() |
S |
52 |
2 |
26 |
get_coupon_content() |
S |
56 |
2 |
20 |
get_encouragements() |
S |
61 |
2 |
13 |
get_adjustment_amount() |
S |
66 |
1 |
8 |
add_coupon() |
S |
80 |
1 |
3 |